package com.consult.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.consult.config.dto.LoginDto;
import com.consult.entity.Visitor;
import com.consult.mapper.VisitorMapper;
import com.consult.service.IVisitorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-06-22
 */
@Service
public class VisitorServiceImpl extends ServiceImpl<VisitorMapper, Visitor> implements IVisitorService {

    @Override
    public LoginDto getByUserName(String name) {
        return baseMapper.getByUserName(name);
    }

    @Override
    public Page<Visitor> getVisitorPage(Page<Visitor> page) {
        return baseMapper.getVisitorPage(page);
    }
}
